local wu__biyou = fk.CreateSkill {
  name = "wu__biyou",
}

Fk:loadTranslationTable{
  ["wu__biyou"] = "庇佑",
  [":wu__biyou"] = "当你成为其他角色使用【桃】的目标后，你可以令其摸一张牌。",
  ["#wu__biyou-invoke"] = "庇佑：你可以令 %dest 摸一张牌",
}

wu__biyou:addEffect(fk.TargetConfirmed, {
  can_trigger = function(self, event, target, player, data)
    return target == player
      and player:hasSkill(wu__biyou.name)
      and data.card.trueName == "peach"
      and data.from ~= player
      and not data.from.dead
  end,

  on_cost = function(self, event, target, player, data)
    local room = player.room
    return room:askToSkillInvoke(player, {
      skill_name = wu__biyou.name,
      prompt = "#wu__biyou-invoke::"..data.from.id,
    })
  end,

  on_use = function(self, event, target, player, data)
    data.from:drawCards(1, wu__biyou.name)
  end,
})

return wu__biyou